export type SwitchValueType = boolean | string | number

export interface SwitchProps {
    modelValue?: SwitchValueType
    disabled?: boolean
    size?: 'small' | 'large'
    name?: string
    id?: string
    activeText?: string
    inactiveText?: string
    activeValue?: SwitchValueType // 开启时对应的值
    inactiveValue?: SwitchValueType // 关闭时对应的值
}

export interface SwitchEmits {
    (e: 'update:modelValue', value: SwitchValueType): void
    (e: 'change', value: SwitchValueType): void
}
